package com.sqx.modules.brand.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.brand.entity.Brand;

import java.util.List;

/**
* @author Admin
* @description 针对表【brand_type(品牌分类表)】的数据库操作Service
* @createDate 2024-09-14 14:35:38
*/
public interface BrandService extends IService<Brand> {

    Result addBrand(Brand brand);

    Result deleteBrand(Long id);

    IPage<Brand> getBrandList(Integer page,Integer limit, Brand brand);

    Result selectById(Long id);

    Result selectByTypeId(Long labelId,Integer isHot);

    Result selectByTypeIds(Long labelId,Integer isHot,Integer isRecovery);


    Result selectByTypeIdByBrandName(Long labelId, Integer isHot, Integer isRecovery, String brandName,Long userId);

    List<Brand> getBrandsByLabelId(Long labelId);

    /**
     * 将回收类型以及品牌、物品、规格复制到普通商品类型
     * @param labelId
     * @param brandId
     * @return
     */
    Result copyBrandListByRecycle(Long labelId,Long brandId);

    /**
     * 将普通类型以及品牌、物品、规格复制到回收类型
     * @param labelId
     * @param brandId
     * @return
     */
    Result copyBrandListByOrdinary(Long labelId,Long brandId);
}
